package com.yonyougov.devops.cruxcisupport.rancher.cluster;

import java.util.HashMap;
import java.util.Map;

public class Network {
    private String plugin = "calico";
    private String type = "networkConfig";
    private Map<String,Object> options = new HashMap<>();

    public Network() {
    }

    public String getPlugin() {
        return plugin;
    }

    public void setPlugin(String plugin) {
        this.plugin = plugin;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Map<String, Object> getOptions() {
        return options;
    }

    public void setOptions(Map<String, Object> options) {
        options.put("flannel_backend_type","vxlan");
        this.options = options;
    }
}
